#define  _CRT_SECURE_NO_WARNINGS

#include "Stack.h"

void TestStack()
{
	Stack st;
	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	while (!StackEmpty(&st))
	{
		StackDataType ret = StackTop(&st);
		printf("%d ", ret);
		StackPop(&st);
	}
	printf("\n");

	int size  = StackSize(&st);
	printf("%d\n", size);

	StackDestroy(&st);
}

int main()
{
	TestStack();

	return 0;
}